// 为了保存token
const key = 'geek-itheima'
// 存入token的封装
export const setToken = (token) => {
  localStorage.setItem(key, token)
}

// 取出token的封装
export const getToken = () => {
  return localStorage.getItem(key)
}

// 删除token
export const removeToken = () => {
  return localStorage.removeItem(key)
}

// 删除刷新token
export const removeRefToken = () => {
  return localStorage.removeItem('refresh_token')
}
